<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Modifier un indicateur</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
-->
</style>
<link href="<%=request.getContextPath()%>/css/css_style.css"
	rel="stylesheet" type="text/css">
</head>

<body>
	<div class="container">
		<div class="header"></div>
		<div class="upmenu">
			<div style="text-align: left; float: left; margin-left: 10px;">
				Bienvenue :
				<s:property value="#session.nom" />
				<s:property value="#session.prenom" />
			</div>
			<div style="text-align: right; float: right; margin-right: 10px;">
				<a href="<%=request.getContextPath()%>/users/logout.action">Se deconnecter</a>
			</div>
		</div>
		<div class="leftmenu">
		<ul id="menu-accordeon">
      <ul>
      <li><a href="<%=request.getContextPath()%>/themes/ListeThemes.action">Liste des thémes</a>
   
   </li>
				<li><a
					href="<%=request.getContextPath()%>/themes/ListeIndicateursCalcule.action?identifiantTheme=<%=request.getParameter("identifiantTheme")%>">Liste des indicateurs
						calculés</a></li>
						
				
			</ul>
		</div>
		<div class="content">
			<div class="content-header">Modifier un indicateur</div>
			<div class="content-core">
				<form action="<%=request.getContextPath()%>/indicateurCalcules/ModifierIndicateur.action">
				<table>
					
					<tr>
						<td><s:label value="Libelle :"></s:label></td>
						<td><s:textfield name="libelle" value="%{#parameters['libelle']}"></s:textfield></td>
					</tr>
					<tr>
						<td><label>Type :</label></td>
						<td><select id="type" name="type" value='<c:out value="${type}"/>'">
									<option value="aucun">Choisissir le type</option>
									<c:if test="${type == 'true'}">
										<option value="true" selected>Calculable</option>
									</c:if>
									<c:if test="${type == 'false'}">
										<option value="false" selected>NonCalculable</option>
									</c:if>
									
									
								</select>
							</td>
							<br>					</tr>
<!-- 					<tr> -->
<%-- 						<td><s:label value="valeur :"></s:label></td> --%>
<%-- 						<td><s:textfield name="valeur" value="%{#parameters['valeur']}"></s:textfield></td> --%>
<!-- 					</tr> -->
					
					<tr>
						<td><s:submit value="Modifier"></s:submit></td>
						<td></td>
					</tr>
				</table>
					
					<s:textfield cssStyle="display:none;" name="identifiant" value="%{#parameters['identifiant']}"></s:textfield>
					<s:textfield cssStyle="display:none;" name="identifiantTheme" value="%{#parameters['identifiantTheme']}"></s:textfield>
				</form>
				
			<s:if test="hasActionErrors()">
						<s:actionerror />
				</s:if>
			</div>
		</div>
	</div>
</body>
</html>